[#include "base.html"]
[#include "groupTree.html"]
<div class="block clearfix">
	<div class="f_l">
		<a href="index.php" name="top"><img src="${path}/images/logo.gif" />
		</a>
	</div>
	<div class="f_r log">
		<ul>
			<li class="userInfo">
				<font id="ECS_MEMBERZONE">
					<div id="append_parent"></div> 
					[#if var_islogin] 
						<font style="top: 10px; position: relative;"> 
							您好，<font class="f4_b">${var_member.bmbNick}</font>， 欢迎您回来！ 
							<a href="${var_contextpath}/user/index.xhtml">用户中心</a>| 
							<a href="javascript:void(0);" onclick="user_logout();">退出</a>
						</font> 
					[#else] 
						欢迎光临本店&nbsp;&nbsp;&nbsp;&nbsp; 
						<a href="javascript: user_toLogin();"> <img src="${path}/images/bnt_log.gif" /> </a> 
						<a href="${var_contextpath}/user/reg.xhtml"> <img src="${path}/images/bnt_reg.gif" /> </a> 
					[/#if] 
				</font>
			</li>
			<li id="topNav" class="clearfix">
				<a href="${var_contextpath}/order/cartorder.xhtml">查看购物车</a>
				<!-- |
	              <a href="pick_out.php" >选购中心</a>
	           |
	              <a href="tag_cloud.php" >标签云</a>
	           |
	              <a href="quotation.php" >报价单</a>-->
				<div class="topNavR"></div>
			</li>
		</ul>
	</div>
</div>
<div class="blank"></div>
<div id="mainNav" class="clearfix">
	[#if var_sysnavselected==""]
		<a href="${var_contextpath}/index.xhtml" class="cur">首页<span></span> </a>
	[#else]
		<a href="${var_contextpath}/index.xhtml">首页<span></span> </a>
	[/#if]
	
	[#-- 读取系统导航的自定义标签，参数说明，par_sncposition：(显示位置(0-顶部，1-中间，2-底部，3-左侧，4-右侧)) --]
	[@ecs_sysnavconfig par_sncposition = 0]
		[#if var_sysnavconfiglist ?? ]
			[#list var_sysnavconfiglist as data]
				[#-- sncType：(内容类型(0-静态内容，1-商品推荐，2-商品分类，3-文章分类，4-外部链接)) --]
				[#switch data.sncType] 
					[#case 0]
						[#if data.sncId = var_sysnavselected]
							<a href="${var_contextpath}/${data.sncUrl}?nav=${data.sncId}" class="cur">${data.sncName}<span></span> </a>
						[#else]
							<a href="${var_contextpath}/${data.sncUrl}?nav=${data.sncId}">${data.sncName}<span></span> </a>
						[/#if]
						[#break]
					[#case 1]
						[#if data.sncId = var_sysnavselected]
							<a href="javascript:void(0);" class="cur">${data.sncName}<span></span> </a>
						[#else]
							<a href="javascript:void(0);">${data.sncName}<span></span> </a>
						[/#if]
						[#break]
					[#case 2]
						[#if data.sncId = var_sysnavselected]
							<a href="${var_contextpath}/${data.sncUrl}?group=${data.sncContent}&nav=${data.sncId}" class="cur">${data.sncName}<span></span> </a>
						[#else]
							<a href="${var_contextpath}/${data.sncUrl}?group=${data.sncContent}&nav=${data.sncId}">${data.sncName}<span></span> </a>
						[/#if]
						[#break]
					[#case 3]
						[#if data.sncId = var_sysnavselected]
							<a href="${var_contextpath}/${data.sncUrl}?baiGroup=${data.sncContent}&nav=${data.sncId}" class="cur">${data.sncName}<span></span> </a>
						[#else]
							<a href="${var_contextpath}/${data.sncUrl}?baiGroup=${data.sncContent}&nav=${data.sncId}">${data.sncName}<span></span> </a>
						[/#if]
						[#break]
					[#case 4]
						[#if data.sncId = var_sysnavselected]
							<a href="${data.sncUrl}?nav=${data.sncId}" class="cur" target="__blank">${data.sncName}<span></span> </a>
						[#else]
							<a href="${data.sncUrl}?nav=${data.sncId}" target="__blank">${data.sncName}<span></span> </a>
						[/#if]
						[#break]	
				[/#switch]
			[/#list]
		[/#if]
	[/@ecs_sysnavconfig]
</div>
<div id="search" class="clearfix">
	<div class="keys f_l">
		<script type="text/javascript">
		<!--
		   function checkSearchForm(){
		      if(document.getElementById('keyword').value){
		          return true;
		      }else{
		          alert("请输入搜索关键词！");
		          return false;
		      }
		   }
		-->
	   </script>
	</div>
	<form id="searchForm" name="searchForm" method="get"
		action="${var_contextpath}/search.xhtml" onSubmit="return checkSearchForm()" class="f_r"
		style="_position: relative; top: 5px;">
		<select name="group" id="category" class="B_input">
			<option value="0">
				所有分类
			</option>
			[#-- 读取商品分类数据的自定义标签，参数：par_treeid 选择分类ID。--]
			[@ecs_classified par_treeid = "0"]
				[@ecs_optiontreeroot par_datalist = var_grouplist/]
			[/@ecs_classified]	
		</select>
		<input name="keywords" type="text" id="keyword" value="${var_keywords!}"
			class="B_input" style="width: 110px;" />
		<input type="submit" value="" class="go"
			style="cursor: pointer;" />
		<a href="search.php?act=advanced_search" style="display:none;">高级搜索</a>
	</form>
</div>